package com.youlin.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@NoArgsConstructor
@Data
@Accessors(chain=true)
public class PageDataResDto<T> extends BaseDataResDto<T> {

    @ApiModelProperty(value="分页信息", position = 4)
    private PageInfo pageInfo;

    public PageDataResDto(Status status) {
        super(status);
    }

    public PageDataResDto(Status status, String message) {
        super(status, message);
    }

    public PageDataResDto setData (T t) {
        super.setData(t);
        return this;
    }

}
